package cn.portx.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.bstek.bdf3.dorado.jpa.annotation.Generator;
import com.bstek.dorado.annotation.PropertyDef;

import cn.portx.annotation.ChineseField;
import cn.portx.policy.ChineseToCodeGeneratorPolicy;

@Entity
@Table(name = "T_CARREAR")
public class Carrier extends BaseEntity {
	private static final long serialVersionUID = 1695116772456455081L;

	@Column(name = "NAME_", length = 100)
	@PropertyDef(label = "名称", description = "名称")
	private String name;

	/** 编号. */
	@Column(name = "CODE_", length = 60)
	@ChineseField("name")
	@Generator(policy = ChineseToCodeGeneratorPolicy.class)
	@PropertyDef(label = "编号", description = "编号")
	private String code;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

}
